﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PacketRush.Core
{
    /// <summary>
    /// Describes an event raised by <see cref="ReliableUdpServerNetworkingProvider"/> and
    /// <see cref="ReliableUdpClientNetworkingProvider"/>.
    /// </summary>
    public class ReliableUdpEventArgs : EventArgs
    {
        /// <summary>
        /// The connection associated to the event.
        /// </summary>
        public ReliableUdpConnection Connection { get; set; }

        /// <summary>
        /// Creates an instance.
        /// </summary>
        /// <param name="conn">The connection associated to the event.</param>
        public ReliableUdpEventArgs(ReliableUdpConnection conn)
        {
            Connection = conn;
        }
    }
}
